package com.bdqn.crm.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bdqn.crm.pojo.SysRight;
import com.bdqn.crm.pojo.SysRole;

import java.util.List;

/**
 * @Entity com.bdqn.crm.pojo.SysRight
 */
public interface SysRightMapper extends BaseMapper<SysRight> {

    /**
     * 根据角色查询权限
     * @param role
     * @return
     */
    List<SysRight> findRightsByRolesOrderByRightCode(SysRole role);

}




